//
//  lxImageView.m
//  luodansc
//
//  Created by 倫 星 on 2012/10/16.
//  Copyright (c) 2012年 方正株式会社. All rights reserved.
//

#import "lxImageView.h"

@implementation lxImageView
@synthesize delegate = _delegate;

- (id)initWithFrame:(CGRect)frame
{
    UIImage *no_img = [UIImage imageNamed:@"no-image.png"];
    self = [super initWithFrame:frame image:no_img];
    if (self) {
        // Initialization code
        [self setUserInteractionEnabled:YES];
    }
    return self;
}

- (void)dealloc {
    [super dealloc];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    if (nil != _delegate) {
        [_delegate imageTouch:touches withEvent:event whichView:self];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
